import React from 'react';
const User = React.createClass({
  render() {
    let { name, age, gender } = this.props.user;
    return (
      <div>
        <h1>{name || '匿名'}</h1>
        <p>age: {age} gender: {gender == 1 ? '男' : gender == 2 ? '女' : '保密'}</p>
      </div>
    );
  }
});

export default User;
